﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DomeXiaoqu.aspx.cs" Inherits="PropertyAppraisal.DoemsKanCha.DomeXiaoqu" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
     <link href="../jquery-easyui-1.3.5/themes/default/easyui.css" rel="stylesheet" />
    <link type="/text/css" href="../jquery-easyui-1.3.5/themes/icon.css" rel="stylesheet" />
    <link href="../jquery-easyui-1.3.5/demo/demo.css" rel="stylesheet" />

    <%--<script type="text/javascript" src="easyui/js/jquery-1.8.0.min.js"></script>--%>

    <script type="text/javascript" src="../jquery-easyui-1.3.5/jquery-1.7.2-min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.3.5/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../jquery-easyui-1.3.5/easyloader.js"></script>


    <script type="text/javascript" src="../easyui/jquery.params.js"></script>
</head>
<body>
    <div class="demo-info">
        <div class="demo-tip icon-tip"></div>
        <%--<div>Fill the form and submit it.</div>--%>
    </div>
    <div style="margin: 0;"></div>
    <form id="form1" runat="server">
        <div class="easyui-panel" fit="true" style="border: none;">
            <div style="margin-left: 30px;" id="ff">
                <table>
                    <tr>
                        <td>项目案名：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" id="xiang" type="text" style="width: 800px;" data-options="required:true" />
                        </td>
                    </tr>
                    <tr>
                        <td>来源：</td>
                        <td style="padding-left: 50px;">
                            <input class="easyui-validatebox" id="laiyuan" type="text" style="width: 800px;" readonly="true" value="证载" />
                        </td>
                    </tr>
                    <tr>
                        <td>小区封闭性：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select2">
                                <%=FengBi() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>居住小区楼宇结构：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select3">
                                <%=HouseStruct() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>交通组织方式：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select4">
                                <%=JiaoTong() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>景观及绿化：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select5">
                                <%=JingGuan() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>容积率：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select6">
                                <%=RongJi() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>车位状况：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select7">
                                <%=CheWei() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>物业公司：</td>
                        <td style="padding-left: 50px;">
                            <select class="easyui-combobox" style="width: 800px;" id="select8">
                                <%=WuYe() %>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>其他:</td>
                        <td style="padding-left: 50px;">
                            <textarea id="message" style="height: 60px; width: 800px;" placeholder="说点什么...最少输入10个字"></textarea>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="text-align: center; padding: 5px">
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
            </div>
        </div>
    </form>

    <script type="text/javascript">
        //调用父页面的赋值方法    
        $(function () {
            var P_ReportNumber = $.query.get("id");//项目号
            //$("#xiangId").val(P_ReportNumber);
        })

        function submitForm()
        {
            var P_ReportNumber = $.query.get("id");//项目号
            var project = $("#xiang").val();
            var laiyuan = $("#laiyuan").val();
            var fengbi = $("#select2").val();
            var loustruct = $("#select3").val();
            var jiaotong = $("#select4").val();
            var jingguan = $("#select5").val();
            var rongji = $("#select6").val();
            var chewei = $("#select7").val();
            var wuye = $("#select8").val();
            var qita = $("#message").val();

            $.ajax({
                type: "post", //要用post方式                 
                url: "DomeXiaoqu.aspx/submins",//方法所在页面和方法名
                data: "{'ProjectNumber':'" + P_ReportNumber + "','Village_CaseName':'" + project + "','Village_Cause':'" + laiyuan + "','Village_Close':'" + fengbi + "','Village_Structure':'" + loustruct + "','Village_Traffic':'" + jiaotong + "','Village_Green':'" + jingguan + "','Village_Volume':'" + rongji + "','Village_Parking':'" + chewei + "','Village_Property':'" + wuye + "','Village_Explain':'" + qita + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    var json = eval("(" + data.d + ")");

                    if (json == 1) {
                        $.messager.alert("提示信息", "提交成功");
                    }
                    else
                        $.messager.alert("提示信息", "提交失败");
                }
            });
        }

    </script>
</body>
</html>
